<?php
## include required files
/*******************************/
require_once '../../includefiles.php';
require_once '../../model/state.php';
/*******************************/
## Create Objects
/*******************************/
$stateObj = new Model_State();
// get country id	
$country_id = $_GET['cid'];
##fecting alll the state 
if($country_id!='')
{
$stateArr = $stateObj->getAllStateByCountryId($country_id);
}
else
{
	$stateArr = '';
}//print_r($stateArr);
$smarty->assign("stateArr", $stateArr);

## Unset all the objects created which are on this page
unset($stateObj);
	
$smarty->display(TEMPLATEDIR_ADMIN . 'city/show_state1.tpl');
unset($smarty);
?>
		

	

